<?php $this->_extends('_layouts/default_layout'); ?>
 
<?php $this->_block('contents'); ?>

<link rel="stylesheet" type="text/css" href="<?php echo $_BASE_DIR; ?>css/setting/style.css">
<link rel="stylesheet" type="text/css" href="<?php echo $_BASE_DIR; ?>css/setting/main.css">

<a href="<?php echo url('systemsetting/DatabaseManagement'); ?>">数据库状态</a>

<br />
<br />

<div>

 <h3>提示信息</h3>
<div class="text">
	<div class="s3" style="margin-left:1em;">
<li>这里显示数据库的状态信息。</li>
	</div>
</div>
<!--内容部分结束-->
</td><td class="box-main-right"></td></tr>
<tr><td class="box-bottom-left"></td><td class="box-bottom-cen"></td><td class="box-bottom-right"></td></tr>
</table>
<!--提示信息-->

<!-- item 1 -->
<table cellpadding="0" cellspacing="0" width="100%">
<tr><td class="box-top-left"></td><td class="box-top-cen"></td><td class="box-top-right"></td></tr>
<tr><td class="box-main-left"></td><td>
<h3>MySQL数据库信息</h3>
<div class="text">
	<table cellpadding="0" cellspacing="0" width="100%">
		<tr>
			<td width="50%"><span class="defaultbold">数据库版本</span></td>
			<td><?php echo $version ?></td>
		</tr>
		<tr>
			<td width="50%"><span class="defaultbold">数据库运行时间</span></td>
			<td><?php echo $runtime ?></td>
		</tr>
	</table>
</div>
</td><td class="box-main-right"></td></tr>
<tr><td class="box-bottom-left"></td><td class="box-bottom-cen"></td><td class="box-bottom-right"></td></tr>
</table>

<br />
<!-- item 2-->
<table cellpadding="0" cellspacing="0" width="100%">
<tr><td class="box-top-left"></td><td class="box-top-cen"></td><td class="box-top-right"></td></tr>
<tr><td class="box-main-left"></td><td>
<h3>数据库表</h3>
<div class="text">
		<table cellpadding="0" cellspacing="0" width="100%">
			<tbody class="">
			<tr class="tth">
				<td width="40%">数据库表名</td>
				<td width="20%">记录数</td>
				<td width="30%">数据大小</td>
			</tr>
            <?php foreach ($tianyi_tables as $table):?>
				<tr>
				<td><?php echo $table['0'] ?></td>
				<td><?php echo $table['2'] ?></td>
				<td><?php echo $table['3'] ?></td>
			</tr>
            <?php endforeach; ?>	

						<tr class="tmult">
				<td width="20%">表数量: <?php echo $tianyi_tablesnum ?></td>
				<td width="20%">总记录数: <?php echo $tianyi_rownum ?></td>
				<td width="*" colspan="2">数据库大小: <?php echo $tianyi_totalsize ?></td>
			</tr>
			</tbody>
		</table>
</div>


<br />
<!-- item 3-->
<!-- item end-->
</div>

<?php $this->_endblock(); ?>